import { AddFormatFunc, calcCalcRuleType } from "../types";

AddFormatFunc<calcCalcRuleType>({

	type: "CALC_CALC",

	handle: (rule, FMC) => {
		return ` ${rule[1]} ${rule[2][0] === "CALC" ? `(${FMC(rule[2])})` : FMC(rule[2])}`;
	},

})
